<template>
  <div class="goods-info" v-if="Object.keys(detailGoodsInfo).length !== 0">
    <div class="info-desc clear-fix">
      <div class="start"></div>
      <div class="desc">{{ detailGoodsInfo.desc }}</div>
      <div class="end"></div>
    </div>
    <div class="img-info">
        <div v-for="(item, index) in detailGoodsInfo.detailImage" :key="index">
            <p>{{item.key}}</p>
            <img v-for="(img, index) in item.list" :src="img" alt="" :key="index">
        </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "DetailGoodsInfo",
  props: {
    detailGoodsInfo: {
      type: Object,
      default() {
        return {};
      },
    },
  },
};
</script>
<style scoped>
.goods-info {
  border-top: 5px solid #f2f5f8;
  padding: 20px;
}
.info-desc {
  padding: 0 15px;
}

.info-desc .start,
.info-desc .end {
  width: 90px;
  height: 1px;
  background-color: #a3a3a5;
  position: relative;
}

.info-desc .start {
  float: left;
}

.info-desc .end {
  float: right;
}

.info-desc .start::before,
.info-desc .end::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #333;
  bottom: 0;
}

.info-desc .end::after {
  right: 0;
}

.info-desc .desc {
  padding: 15px 0;
  font-size: 14px;
  line-height: 25px;
}
.img-info p{
    font-size: 14px;
    padding-top: 10px;
}
.img-info img{
    width: 100%;
}
</style>